import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import '@/element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/scss/common.scss'
import '@/assets/scss/reset.scss'
import '@/icons'
import httpRequest from '@/utils/httpRequest'
import AppConstant from '@/constant/app-constant'
import VueCookie from 'vue-cookie'
import moment from 'moment'//导入文件

Vue.use(VueCookie)

Vue.config.productionTip = false

// 过滤器
Vue.filter('isEmptyText', function(value){
  return (typeof value === "undefined" || value === null || value === "") ? "--" : value
})

//日期时间格式化
Vue.prototype.$moment = moment;

// 挂载全局
Vue.prototype.$http = httpRequest // ajax请求方法
Vue.prototype.$appConstant = AppConstant// app常量
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
